<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>Index Page</title>
    <link rel="stylesheet" th:href="@{/css/common.css}">
</head>
<body>
<!--body div-->
<div id="body">
    <!--head div-->
    <div>
        <div>
            <a th:href="@{/}">首页</a>
        </div>
        <div>
            <a th:href="@{/login}" shiro:guest="">登陆</a>
            <a th:href="@{/logout}" shiro:user>注销</a>
        </div>
        <h3>首页：Shiro安全框架学习</h3>
    </div>

    <!--功能div-->
    <div>
        <a th:href="@{/user/add}" shiro:hasPermission="user:add">添加</a> &nbsp;&nbsp; <a th:href="@{/user/update}" shiro:hasPermission="user:update">修改</a>
    </div>

    <!--foot div-->
    <div>
        <span>designed by liyan</span>
    </div>
</div>
</body>
</html>